image gallery with search box in javascript